package com.freesky.biz.abchina.service.impl;

import com.freesky.biz.abchina.domain.TCreditActivity;
import com.freesky.biz.abchina.mapper.CreditActivityMapper;
import com.freesky.biz.abchina.service.ICreditActivityService;
import com.freesky.biz.icbc.domain.TMarketingActivity;
import com.freesky.biz.icbc.mapper.MarketingActivityMapper;
import com.freesky.biz.icbc.service.IMarketingActivityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CreditActivityServiceImpl implements ICreditActivityService {
    private static final Logger logger = LoggerFactory.getLogger(CreditActivityServiceImpl.class);

    @Autowired
    private CreditActivityMapper creditActivityMapper;

    @Override
    public List<TCreditActivity> selectCreditActivityList(TCreditActivity entity) {
        return creditActivityMapper.selectCreditActivityList(entity);
    }

    @Override
    public TCreditActivity selectCreditActivityById(String id) {
        return creditActivityMapper.selectCreditActivityById(id);
    }

    @Override
    public int insertCreditActivity(TCreditActivity entity) {
        return creditActivityMapper.insertCreditActivity(entity);
    }

    @Override
    public int updateCreditActivity(TCreditActivity entity) {
        return creditActivityMapper.updateCreditActivity(entity);
    }

    @Override
    public int deleteCreditActivityById(String id) {
        return creditActivityMapper.deleteCreditActivityById(id);
    }

    @Override
    public int deleteCreditActivityByIds(String[] ids) {
        return creditActivityMapper.deleteCreditActivityByIds(ids);
    }
}
